package com.yaperviy.dao.hibernate;

import java.util.List;

import com.yaperviy.dao.hibernate.GenericDaoHibernate;
import com.yaperviy.model.Brand;
import com.yaperviy.dao.BrandDao;

import org.springframework.stereotype.Repository;


public class BrandDaoHibernate extends GenericDaoHibernate<Brand, Long> implements BrandDao {

    public BrandDaoHibernate() {
        super(Brand.class);
    }

    public List<Brand> findByIsRus(Boolean is_rus) {
        return getHibernateTemplate().find("from Brand where is_rus=?", is_rus);
    }
}
